package net.zozoo.ioc.di2;

import java.util.List;

/**
 * 部门
 */
public class Dept {
    private String name;
    private List<Emp> list;

    public void info() {
        System.out.println("部门名称：" + name);
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<Emp> getList() {
        return list;
    }

    public void setList(List<Emp> list) {
        this.list = list;
    }

    @Override
    public String toString() {
        return "Dept{" +
                "name='" + name + '\'' +
                ", list=" + list +
                '}';
    }
}
